package ru.amse.podolsky.fractalarch.ui.textui;


/**
 *
 * @author Алексей
 */
import java.io.*;

public class TextOutput {

    public static void help(){
        System.out.println("Usage: fractalarch <subcommand> [files names] [parameter].");
                System.out.println();
                System.out.println("Avalible subcomands:");
                System.out.println("    -c    : Compress the image file into fractal archive.");
                System.out.println("    -d    : Decompress the image file from fractal archive into bitmap image.");
                System.out.println("    -h    : Show this help.");
                System.out.println("If you want compress/decompress image in text mode - add 't' before key(-tc to compress, for example.)");
                System.out.println();
                System.out.println("In <files names> type two names: first - for file, which will be compressed(for -c subcommand)");
                System.out.println("or fractal archiv(for -d subcomand), second - for fractal archive(for -c subcommand) or for file, into which");
                System.out.println("will be decompressed archive(for -d subcomand).");
                System.out.println();
                System.out.println("Parametrs is only for -c subcommand and set block size.");
    }

     public static void compress(){
         System.out.println("Please wait while file is compressed.");
     }

     public static void decompress(){
         System.out.println("Please wait while file is decompressed.");
     }

     public static void error(Exception e){
         System.out.println("Unsupported excrption has been occured: " + e);
     }

     public static void noParametrs(){
         System.out.println("Incorrect key. Please use -c to compress, -d to decompress image or -h for help.");
     }

     public static void incorrectParams(){
        System.out.println("Incorrect key. Please use -c to compress, -d to decompress image (use -tc to compress, -td to decompress image in text mode)or -h for help.");
     }

     public static void compressDone(){
         System.out.println("File was compressed succsesfull.");
     }

     public static void decompressDone(){
         System.out.println("File was decompressed succsesfull.");
     }

}
